<?php

require('./View/ShowTable.php');
	//Takes a query and a list of links and displayes the data in list form.  
	function generalView($query, $linkArray) {
		$result = mysql_query($query) or die('Query failed: ' . mysql_error()); 
		$shower = new ShowTable();
		$select = $shower -> displayData($result, $linkArray);
		echo $select;
		mysql_free_result($result);
	}

?>